import network.NetworkCreator;
import network.Network;
import network.Vertex;
import algorithms.DeploymentAlgorithmFactory;

import java.security.NoSuchAlgorithmException;
import java.util.Set;

/**
 * User: mtk
 * Date: 30/06/2007
 */
public class Main {
    public static void main(String [] args){
        NetworkCreator nc = new NetworkCreator(args[0]);

        Network n = nc.getNetwork();

        try {
            Set<Vertex> s =  n.maximizeCentrality(DeploymentAlgorithmFactory.GroupCloseness, 4, 25500);

            System.out.println("Result:");
            System.out.println(s);
            
        } catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        }
    }
}
